// services/product.js
import request from '@/utils/request.js';

// 获取产品列表
export const getProductList = () => {
    return request.get('/product/getProductPage')
}

// 获取产品详情
export const getProductDetails = (productId) => {
    return request.get('/product/getProductDetails', {
        productId
    });
}

// 获取可预约时间
export const getProductApptTimeSlotByDate = (
    productId,
    date
) => {
    return request.get('/apptTimeSlot/getProductApptTimeSlotByDate', {
        productId,
        date
    })
}